<template>
	<view class="container">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item,index) in list">
				<view class="swiper-item">
					<image :src="'../../static'+item.icon" mode="" style="width: 100%; height: 240px;"></image>
				</view>
			</swiper-item>
		</swiper>
				<uni-section title="功能列表" sub-title="" type="" style="width: 100%;">
					<uni-grid :column="3">
						<uni-grid-item v-for="item,index in typelist">
							<view
								style="display: flex; flex-direction: column; align-items: center; padding-top: 10px;">
								<image :src="'../../static/'+item.icon" style="width: 80rpx; height: 80rpx; " mode="">
								</image>
								<view>{{item.typename}}</view>
							</view>
						</uni-grid-item>
					</uni-grid>
				</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
				
								"icon": "../../static/one.jpg",
				
							},
							{
								"icon": "../../static/two.jpg",
				
							},
							{
								"icon": "../../static/three.jpg",
				
							},
							{
								"icon": "../../static/four.jpg",
				
							}
						],
						"typelist": [{
								"typename": "新闻",
								"icon": "/img/新闻.png"
							},
							{
								"typename": "公告",
								"icon": "/img/公告.png"
							},
							{
								"typename": "留言",
								"icon": "/img/留言.png"
							},
							{
								"typename": "电话",
								"icon": "/img/电话.png"
							},
							{
								"typename": "同学",
								"icon": "/img/同学.png"
							},
							{
								"typename": "风景",
								"icon": "/img/风景.png"
							},
							
				
						],
					}
				},
				onLoad: () => {
					uni.onTabBarMidButtonTap(function(e) {
						console.log(e)
				
					})
		},
		methods: {
			
		}
	}
</script>

<style>
.container {
		font-size: 14px;
		line-height: 24px;
	}

	.a {
		margin: 8px;
	}

	.b {
		font-size: large;
	}
</style>
